<?php

namespace app\advertisement\controller;

use app\common\controller\PCBase;
// use app\common\controller\DBase;//测试专用
use app\advertisement\logic\AdvaccountLogic;
use app\advertisement\model\Advaccount as AdvaccountModel;
use think\facade\Db;
use Throwable;
use app\common\library\Upload;

class Advaccount extends PCBase
{
    /**
     * 模型
     * @var object
     * @phpstan-var AdvaccountModel
     */
    protected object $model;

    public function initialize(): void
    {
        parent::initialize();
        $this->model = new AdvaccountModel();
    }

    /**
     * index
     * @throws Throwable
     */
    public function index()
    {
        $params     = $this->request->post();
        $AdvaccountLogic = new AdvaccountLogic();
        return $AdvaccountLogic->index($params);
    }

    /**
     * AdvaccountList
     * @throws Throwable
     */
    public function AdvaccountList()
    {
        $params     = $this->request->post();
        $AdvaccountLogic = new AdvaccountLogic();
        return $AdvaccountLogic->AdvaccountList($params);
    }

    /**
     * OperationsList
     * @throws Throwable
     */
    public function OperationsList()
    {
        $params     = $this->request->post();
        $AdvaccountLogic = new AdvaccountLogic();
        return $AdvaccountLogic->OperationsList($params);
    }

    /**
     * ShopList
     * @throws Throwable
     */
    public function ShopList()
    {
        $params     = $this->request->post();
        $AdvaccountLogic = new AdvaccountLogic();
        return $AdvaccountLogic->ShopList($params);
    }


    /**
     * export
     * @throws Throwable
     */
    public function export()
    {
        $params     = $this->request->post();
        $AdvaccountLogic = new AdvaccountLogic();
        return $AdvaccountLogic->export($params);
    }

}
